<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<meta name="viewport"
			content="width=device-width, maximum-scale=1.0, initial-scale=1.0,initial-scale=1.0,user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<title>${report.name!''}-<#if systemConfig?? && systemConfig.title?? && systemConfig.title != ''>${systemConfig.title}<#else>中公高科客服-全渠道智能客服</#if></title>
		<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico?t=1487250759056"/>
		<link rel="stylesheet" href="/layui/css/layui.css">
		<link rel="stylesheet" href="/res/css/system.html">
		<link rel="stylesheet" href="/css/ukefu-view.css">
		<script src="/js/jquery-1.10.2.min.js"></script>
		<script src="/js/jquery-ui-1.10.2.custom.min.js"></script>
		<script src="/js/jquery.hotkeys.min.js"></script>
		<script src="/js/template.js"></script>
		<script src="/js/jquery.nicescroll.min.js"></script>
		

		<script src="/js/jquery.form.js"></script>

		<script src="/js/select/js/select2.min.js"></script>

		<script src="/layui/layui.js"></script>
		<script src="https://gw.alipayobjects.com/os/antv/assets/lib/lodash-4.17.4.min.js"></script>
		<script src="/js/maps.js"></script>
		<script src="/js/main.js"></script>
		<script src="/js/ukefu-report.js"></script>
		<script src="/js/ukefu-report.chart.js"></script>
		<script src="/js/UKeFu_Util.js"></script>
		<script src="/js/g2.min.js"></script>
		<script src="/js/data-set.min.js"></script>
	</head>

	<body>
		<div class="layui-layout layui-layout-admin">
			<div class="layui-header header header-ukefu">
				<div class="layui-main">
					<span style="color:#ffffff;padding-left:10px;font-size:20px;line-height:47.5px;">${report.name!''}</span>
					<span style="color:#ffffff;margin-left:20px;font-size:12px;">创建于：${report.createtime?string('yyyy-MM-dd HH:mm:ss')}</span>
				</div>
			</div>
			<div class="layui-body" style="left:0px;">
				<#if reportFilters?? && reportFilters?size gt 0>
				<div class="ukefu-filters-content layui-form">
					<form  action="/apps/report/view.html?id=${report.id!''}" method="post">
					<div  class="ui-sortable layui-row" >
						<div class="layui-col-md11" id="ukefu-filter-list">
							<#if reportFilters??>
							<#list reportFilters as filter>
							<#if filter.reportid == report.id>
							<#assign eltemplet = filter.templet()>
							<#include "/apps/business/report/design/filter.html"/>
							</#if>
							</#list>
							</#if>
						</div>
						<div class="layui-col-md1 ukefu-filter-submit">
							<button class="layui-btn layui-btn-normal" lay-submit  lay-filter="query">查询</button>
						</div>
					</div>
					</form>
				</div>
				</#if>
				<div class="content design">
					<#if reportModels??>
					<#list reportModels?reverse as model>
					<#if model.parentid == report.id>
					<#assign templet = model.templet()>
					<#include "/apps/business/report/design/layout.html"/>
					</#if>
					</#list>
					</#if>
				</div>
			</div>
		</div>
		<script>
			layui.use('element', function(){
			  var element = layui.element;
			});
			layui.use('form', function(){
				  var form = layui.form;
				  form.on('submit(query)', function(data){
					 let params = $(data.form).serialize();
					 let ajaxelements = $(".ukefu-element-ajax");
					 $.each(ajaxelements,function(){
						 loadURL($(this).attr("data-url")+"&"+params,"#"+$(this).attr("id"));
					 })
					  return false;
					});
				  form.render();
				});
		</script>
	</body>

</html>
